#ifndef REGPOLYGON
#define REGPOLYGON

#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#include "Region.h"
using namespace std;

class RegPolygon : public Region
{
public:
	RegPolygon();
	RegPolygon(int edges, double crad = 1);
	
	unsigned int sides;
	double circumradius;
	
	//Geometry functions
	double getApothemLength();
	double getSideLength();
	double getInteriorAngle();

	bool pointInside(double *position,double error = 0.01);
};

#endif